<?php
class Zend_View_Helper_DrawMenuAdmin extends Zend_View_Helper_Abstract
{
	protected $ft;
	public function __construct()
	{
	$this->ft = true;
	}
	public function Draw($Array,$Prefix = '')
	{

		if (  count($Array)  ) 
		{
			echo "<ul>";
			foreach ($Array as $Value)
			{
			    echo "<li ln='{$Value['Lang']}' tid='{$Value['ID']}'><a href='#'><ins>&nbsp;</ins><strong>{$Value['Name']}</strong> {$Value['Lang']}</a>";	
                if( isset($Value['sub']) && count($Value['sub']) ) 
                {
                    $ArraySub = $Value['sub'];
                    echo '<ul>'; 
                	foreach($ArraySub as $Value2)
                	{
//                        echo "<li tid='{$Value2['ID']}'><a href='#'><ins>&nbsp;</ins><span><strong>{$Value2['Lang']}</a></li>";            		
                	}                	
                	echo '</ul>';
	
                }
                echo "</li>"; 
			}
			echo "</ul>";
		}
	}
	
	
	
	public function drawMenuAdmin($Menu)
	{
       $this->Draw($Menu);
	}
}